import request from '@/utils/request'

// 查询列表
export function listProject(query) {
    return request({
        url: '/admin-api/system/project/page',
        method: 'get',
        params: query
    })
}

// 查询详细
export function getProject(projectId) {
    return request({
        url: '/admin-api/system/project/get?id=' + projectId,
        method: 'get'
    })
}

// 新增
export function addProject(data) {
    return request({
        url: '/admin-api/system/project/create',
        method: 'post',
        data: data
    })
}

// 修改
export function updateProject(data) {
    return request({
        url: '/admin-api/system/project/update',
        method: 'put',
        data: data
    })
}


// 下拉选择
export function getProjectListSimple() {
    return request({
        url: '/manage-api/system/project/list-all-simple',
        method: 'get'
    })
}

// 删除项目
export function delProject(id) {
    return request({
        url: '/admin-api/system/project/delete?id=' + id,
        method: 'delete'
    })
}
